#include "log/log.h"
#include "ota_http.h"

int main(int argc, char const *argv[])
{
    //获取json字符串
    char *json= ota_http_getJson(OTA_URL_FILEINFO);
    log_debug("json:%s",json);
    //获取更新包文件
    int res= ota_http_download(OTA_URL_DOWNLOAD,OTA_LOCAL_FILE_PATH);
    if(res==0){
        log_debug("download success");
    }

    return 0;
}


